ColorButton: Don’t destroy dialog @ ::delete-event
authorHiroyuki Ito <ZXB01226@nifty.com>
Mon, 11 Sep 2017 12:02:13 +0000 (12:02 +0000)
committerDaniel Boles <dboles@src.gnome.org>
Tue, 12 Sep 2017 19:52:43 +0000 (20:52 +0100)
commitefaf99b039f3882157df67f714dfa5a7af46f2a2
tree0a13b11388e5d149127d86bcaac8473fc1ef83cb
parentc2739ba1e7c139dedd1b6d93d1e736799d8c305d
ColorButton: Don’t destroy dialog @ ::delete-event

Without specifically connecting ::delete-event to something, the dialog
will be destroyed when it is closed, for example by pressing Esc. This
meant that when dismissing it this way, unlike by pressing Cancel, any
custom palette would be lost when the dialog was next opened, and so on.

Resolve this by making ::delete-event just do GTK_RESPONSE_CANCEL, so
closing the dialog has the same effect as clicking its Cancel button.

https://bugzilla.gnome.org/show_bug.cgi?id=787444
gtk/gtkcolorbutton.c